<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>个人简历</title>
    <script type="text/javascript">
        function confirmpwd(){
            var p1 = document.form1.pwd1.value;
            if(p1 == ""){
                alert("请先输入密码");//检测密码为空，不能输入确认密码，提醒输入，
                document.form1.pwd1.focus();
            }
            else alert("请再次输入密码，与上次相同")
        }
        
    </script>
    <script>
        function login(){
                window.location.href = 'introduction2.html';   //跳转到个人网页 
            }
    </script>
</head>
<body>
    <form name="form1">
        密码 <input type="password" name="pwd1"/><br>
        确认密码<input type="password" name="pwd2" onclick="confirmpwd()"/><br>
    </form>
    <input type="submit" value="登录" onclick="login()"/>
</body>
</html>